import React from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';

function A() {
  return <h1>组件A</h1>
}

function B() {
  return <h1>组件B</h1>
}

function C() {
  return <h1>组件C</h1>
}

export default function App() {
  return (
    <Router>
      <Route path="/a" component={A} />
      <Route path="/a/b" component={B} />
      <Route path="/a/b/c" component={C} />
    </Router>
  )
}